<template>
  <div id="column">
    <div>
      <div>
        <h1>{{title}}</h1>
        <p>{{text}}</p>
      </div>
      <p class="hyh"><i></i><a>换一换</a></p>
    </div>

    <div>
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: ["title", "text"],
};
</script>
<style lang="scss" scoped>
#column {
  margin: 0px 0 70px 0;
  & > div:nth-child(1) {
    display: flex;
    width: 1007px;
    justify-content: space-between;
    & > div:nth-child(1) {
      display: flex;
      align-items: flex-end;
      p {
        margin: 0 10px;
        font-size: 15px;
        color: #666;
      }
      h1 {
        color: #fb6720;
      }
    }
    .hyh {
      color: #999;
      font-size: 14px;
      margin-top: 10px;
      position: relative;
      &:before {
        position: absolute;
        content: "";
        width: 14px;
        height: 14px;
        background-image: url("http://css.mafengwo.net/images/localdeals/visa/change.png");
        background-size: 100%;
        left: -17px;
        top: 3px;
      }
      a:hover{
        text-decoration: underline;
      }
    }
  }
  & > div:nth-child(2) {
    display: flex;
    margin-top: 20px;
  }
}
</style>